package com.lixin.demo.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.lixin.demo.entity.Account;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
@DS("account-db")
public interface AccountMapper {

    public Account getAccountById(@Param("id") Long id);

    public int updateAccountBalance(@Param("id") Long id, @Param("balance") float balance);

}
